// 引入axios | 路径配置
import { AJAX_PATH } from "@/services/config.js";

// 导入 封装的 有权限请求2
import { HTTP_LIMITED } from "@/utils/axios.js";

class ShenChanLingLiaoHTTP extends HTTP_LIMITED {
  // 获取仓库信息
  getWarehouseInfo(options) {
    return this._get(AJAX_PATH.getWarehouseInfo + options);
  }

  // 生产领料申请
  saveShengChanLingLiao(queryPath, data) {
    return this._post(AJAX_PATH.saveShengChanLingLiao + queryPath, data);
  }
  // 生产领料修改
  updateShengChanLingLiao(data) {
    return this._post(AJAX_PATH.updateShengChanLingLiao, data);
  }
  // 生产领料记录修改
  updateShengChanLingLiaoRecord(data) {
    return this._post(AJAX_PATH.updateShengChanLingLiaoRecord, data);
  }
  // 生产领料出库源单上半部分
  getProducePickingInfo(queryPath) {
    return this._get(AJAX_PATH.getProducePickingInfo + queryPath);
  }
  // 生产领料出库单物品表
  getProducePickingGoodsInfo(queryPath) {
    return this._get(AJAX_PATH.getProducePickingGoodsInfo + queryPath);
  }
}

export { ShenChanLingLiaoHTTP };
